|
|
|
|
|
|
|
10. Add a Label control named lblArray to the left of the first text box. Set its Caption property to First Name: and its Alignment property to 1 Right Justify. |
|
|
|
|
|
|
|
|
11. Copy the Label control to the Clipboard, and paste a copy of it on the form. Answer Yes when asked whether you want to create a control array. Set the copy's Caption property to Last Name:, and drag it to the left of the second text box. (Note that you can set properties of individual control array elements just as if they were independent controls.) |
|
|
|
|
|
|
|
|
12. Paste two more copies of the Label control on the form. Drag them to the left of the third and fourth text boxes, and set their Caption properties to City: and State:, respectively. |
|
|
|
|
|
|
|
|
Figure 13.3 shows the form after completing the design steps. The figure also points out the Index property of a control. The non-empty value of the Index property indicates that the control is part of a control array. |
|
|
|
|
|
|
|
|
Figure 13.3
This form contains two control arrays. |
|
|
|
|
|